<!DOCTYPE html>
<html>
	<head>
		<title>屏幕水印</title>
	</head>
	<body>
		<!-- 引入本地的JavaScript文件 -->
		<script src="dstpSecurityPage-1.1.3.umd.js"></script>

		<script>
			window.addEventListener('message', event => {
				var data = event.data;
				var txt = data.txt;
				var param = data.param;
				var option = {
					txt: txt
				};
				option = Object.assign(option, param);
				option.alpha = option.alpha / 100;
				dstpSecurityPage.createWatermarking(option);
			});
		</script>
	</body>
</html>
